package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Reservation;
import com.zzyl.nursing.dto.MemberReservationDto;
import com.zzyl.nursing.vo.TimestampCountVo;

import java.util.List;

/**
 * @version: 1.0
 * @Author: ljy
 * @description:
 * @date: 2025-07-31 20:38
 */
public interface MemberReservationService extends IService<Reservation> {
    /**
     * 新增预约信息
     * @param memberReservationDto
     * @return
     */
    boolean saveReservation(MemberReservationDto memberReservationDto);

    /**
     * 取消预约
     * @param id
     * @return
     */
    boolean cancelReservation(Long id);

    /**
     * 查询指定状态的预约信息
     * @param status
     * @return
     */
    List<Reservation> selectMemberReservationList(Integer status);

    /**
     * 查询指定时间段的预约信息
     * @return
     */
    Long getCancelledReservationCount();

    /**
     * 查询指定时间段的预约信息
     * @return
     */
    List<TimestampCountVo> countByTime(long time);
}
